 <div class="layui-main search-form" style="margin-top:20px;padding-top: 20px;">
 <!-- 显示所有分类 -->
  <div class="layui-form-item">
    <label class="layui-form-label" style="width:50px">类型:</label>
    <div class="layui-input-block">
     <a href="{:url('search/index',['c'=>'','p'=>$Request.param.p,'s'=>$Request.param.s])}" class="{if !$Request.param.c}layui-bg-blue {/if}" >全部</a>
	
		       {volist name="guaranteecategory"  id="vo"}
		        <a href="{:url('search/index',['c'=>$vo.cid,'p'=>$Request.param.price,'s'=>$Request.param.s])}" {if $Request.param.c == $vo.cid} class="layui-badge layui-bg-blue"  {/if}>{$vo.cname}</a>
		          
		       {/volist}
    </div>
  </div>

  <!-- 交易价格 -->
  <div class="layui-form-item">
    <label class="layui-form-label" style="width:50px">价格:</label>
    <div class="layui-input-block">
      <a href="{:url('search/index',['p'=>'','s'=>$Request.param.s])}" class="{if !$Request.param.p}layui-bg-blue {/if} ">全部</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>1,'s'=>$Request.param.s])}" class=" {if $Request.param.p == 1}layui-bg-blue {/if} "> 1000以内</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>2,'s'=>$Request.param.s])}" class=" {if $Request.param.p == 2}layui-bg-blue {/if} "> 1000-5000 </a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>3,'s'=>$Request.param.s])}" class="  {if $Request.param.p == 3}layui-bg-blue {/if} ">5000-10000</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>4,'s'=>$Request.param.s])}" class="  {if $Request.param.p == 4}layui-bg-blue {/if} ">10000-50000</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>5,'s'=>$Request.param.s])}" class="  {if $Request.param.p == 5}layui-bg-blue {/if} ">5万-10万</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>6,'s'=>$Request.param.s])}" class="  {if $Request.param.p == 6}layui-bg-blue {/if} ">10万-20万</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>7,'s'=>$Request.param.s])}" class="  {if $Request.param.p == 7}layui-bg-blue {/if} ">20万以上</a>
    </div>
  </div>

  <!-- 交易状态 -->
  <div class="layui-form-item">

    <label class="layui-form-label" style="width:50px">状态:</label>

    <div class="layui-input-block">
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>$Request.param.p,'s'=>''])}" class=" {if !$Request.param.s}layui-bg-blue {/if} ">全部</a>
     <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>$Request.param.p,'s'=>'1'])}" class="  {if $Request.param.s == '1'}layui-bg-blue {/if} ">待交易</a>
      <a href="{:url('search/index',['c'=>$Request.param.c,'p'=>$Request.param.p,'s'=>'2'])}" class="  {if $Request.param.s == '2'}layui-bg-blue {/if} ">交易中</a>
 </div>
  </div>
</div>

<!-- 排序盒子 -->
<div class="layui-main sort-box">
  <ul>
    <li><a href="{:url('search/index')}"><span>默认</span><i class="layui-icon layui-icon-triangle-d"></i><em></em></a></li>
    <li><a href="{:url('search/index',['op'=>$order_price])}"><span>价格排序</span><i class="layui-icon layui-icon-triangle-d"></i><em></em></a></li>
  </ul>
</div>


<div class="layui-main list-info">

<div class="layui-tab layui-tab-brief " lay-filter="docDemoTabBrief">

            <!-- 交易中 -->
           <div class="layui-tab-item layui-show">
        <table class="layui-table"  lay-skin="nob" lay-size="lg">
            <colgroup>
              <col width="520">
              <col width="150">
              <col width="150">
              <col width="150">
              <col width="120">
              <col width="100">

              <col>
            </colgroup>
            <thead>
              <tr>
                <th>名称</th>
                <th>类型</th>
                <th>价格</th>
                <th>进度</th>
                <th>时间</th>
                <th></th>
              </tr> 
            </thead>
            <tbody>
            {volist name="list"  id="vo" }
              <tr>
                <td><span style="border: 1px solid #03A9F4;color: #03A9F4;padding:0px 8px">{if $vo.id_type ==0}买{elseif $vo.id_type ==1}卖{/if}</span>  <a href="/detail/{$vo.id}.html" title="{$vo.title}">{$vo.title}</a></td>
                <td>{$vo.cname}</td>
                <td class="orange"><i class="fa fa-cny"></i> {$vo.price}</td>
  
                <td>{if $vo.status ==1}待交易{elseif $vo.status ==2}交易中{elseif $vo.status ==3}交易成功{/if}</td>
                <td>{:format_time('Y-m-d',$vo.create_time,1)}</td>
                
                <td>
                <a href="/detail/{$vo.id}.html" class="layui-btn layui-btn-primary">查看详情</a>
               
                </td>
              </tr>
                      {/volist}
             
            </tbody>
          </table>


         </div>

    </div>
  </div> 

<div class="layui-main">
<div id="pages">{$page|raw}</div>
</div>
